package comment

import (
	"github.com/gin-gonic/gin"
	. "myplatform/handler/comment"
	"myplatform/middleware"
)

func CommentLoad(g *gin.Engine) {
	CmV1 := g.Group("comment/user")
	CmV1.Use(middleware.AuthToken) //为路由组添加中间件
	{
		//CmV1.GET("", GetUserBycomment)
		//CmV1.POST("", Addcomment)
	}
	//根据评论找用户
	g.GET("/comment/user", GetUserBycomment)
	//根据pid来添加评论
	g.POST("/post/addcomment", Addcomment)
}
